1 Descriptive Statistics

1.1 By Month

1.2 Distance

1.3 Time

1.4 Velocity

1.5 Angles

2 Correlated random walk

Process Model

\[ d_{t} \sim T*d_{t-1} + Normal(0,\Sigma)\] \[ x_t = x_{t-1} + d_{t} \]

2.1 Parameters

For each individual:

\[\theta = \text{Mean turning angle}\] \[\gamma = \text{Move persistence} \]

For both behaviors process variance is: \[ \sigma_{latitude} = 0.1\] \[ \sigma_{longitude} = 0.1\]

2.2 Behavioral States

\[ \text{For each individual i}\] \[ Behavior_1 = \text{traveling}\] \[ Behavior_2 = \text{foraging}\]

\[ \alpha_{i,1,1} = \text{Probability of remaining traveling when traveling}\] \[\alpha_{i,2,1} = \text{Probability of switching from Foraging to traveling}\]

\[\begin{matrix} \alpha_{i,1,1} & 1-\alpha_{i,1,1} \\ \alpha_{i,2,1} & 1-\alpha_{i,2,1} \\ \end{matrix} \]

2.3 Environment

Behavioral states are a function of local environmental conditions. The first environmental condition is ocean depth. I then build a function for preferential foraging in shallow waters.

It generally follows the form, conditional on behavior at t -1:

\[Behavior_t \sim Multinomial([\phi_{traveling},\phi_{foraging}])\]

With the probability of switching states:

\[logit(\phi_{traveling}) = \alpha_{Behavior_{t-1}} + \beta_{Month,1} * Ocean_{y[t,]} + \beta_{Month,2} * Coast_{y[t,]}\]

\[logit(\phi_{foraging}) = \alpha_{Behavior_{t-1}} \]

Following Bestley in preferring to describe the switch into feeding, but no estimating the resumption of traveling.

The effect of the environment is temporally variable such that

\[ \beta_{Month,2} \sim ~ Normal(\beta_{\mu},\beta_\tau)\]

2.4 Continious tracks

The transmitter will often go dark for 10 to 12 hours, due to weather, right in the middle of an otherwise good track. The model requires regular intervals to estimate the turning angles and temporal autocorrelation. As a track hits one of these walls, call it the end of a track, and begin a new track once the weather improves. We can remove any micro-tracks that are less than three days. Specify a duration, calculate the number of tracks and the number of removed points. Iteratively.

How did the filter change the extent of tracks?

##      user    system   elapsed 
##  1350.585     6.543 74276.170

2.5 Chains

2.5.1 Compare to priors

2.6 Parameter Summary

##    parameter         par         mean        lower         upper
## 1   alpha_mu alpha_mu[1] -0.293451174 -0.806702071  0.1358820567
## 2   alpha_mu alpha_mu[2] -1.528233450 -1.882607729 -1.1609695098
## 3       beta   beta[1,1]  0.266502681 -0.976187762  1.4885335464
## 4       beta   beta[2,1] -0.282060362 -1.404995015  0.6052905549
## 5       beta   beta[3,1]  0.420818327 -0.365476354  1.1637208103
## 6       beta   beta[4,1]  0.387767466 -0.375100908  1.2317937295
## 7       beta   beta[5,1]  0.400383137 -1.153769778  1.5639176455
## 8       beta   beta[6,1]  0.194803814 -1.545564449  1.7163936354
## 9       beta   beta[1,2]  0.000000000  0.000000000  0.0000000000
## 10      beta   beta[2,2]  0.000000000  0.000000000  0.0000000000
## 11      beta   beta[3,2]  0.000000000  0.000000000  0.0000000000
## 12      beta   beta[4,2]  0.000000000  0.000000000  0.0000000000
## 13      beta   beta[5,2]  0.000000000  0.000000000  0.0000000000
## 14      beta   beta[6,2]  0.000000000  0.000000000  0.0000000000
## 15     beta2  beta2[1,1]  0.017325698  0.002925333  0.0335490794
## 16     beta2  beta2[2,1]  0.016609239  0.003851263  0.0310109340
## 17     beta2  beta2[3,1]  0.004607113 -0.006453386  0.0153889846
## 18     beta2  beta2[4,1]  0.014839781  0.001452640  0.0286230046
## 19     beta2  beta2[5,1]  0.053829294  0.004112717  0.2046698586
## 20     beta2  beta2[6,1]  0.033459543 -0.060517109  0.1989150829
## 21     beta2  beta2[1,2]  0.000000000  0.000000000  0.0000000000
## 22     beta2  beta2[2,2]  0.000000000  0.000000000  0.0000000000
## 23     beta2  beta2[3,2]  0.000000000  0.000000000  0.0000000000
## 24     beta2  beta2[4,2]  0.000000000  0.000000000  0.0000000000
## 25     beta2  beta2[5,2]  0.000000000  0.000000000  0.0000000000
## 26     beta2  beta2[6,2]  0.000000000  0.000000000  0.0000000000
## 27  beta2_mu beta2_mu[1]  0.021914695 -0.011381467  0.0769331025
## 28  beta2_mu beta2_mu[2]  0.000000000  0.000000000  0.0000000000
## 29   beta_mu  beta_mu[1]  0.215616132 -0.660868507  0.9920253193
## 30   beta_mu  beta_mu[2]  0.000000000  0.000000000  0.0000000000
## 31     gamma    gamma[1]  0.902882918  0.857082544  0.9425765276
## 32     gamma    gamma[2]  0.099915001  0.021423116  0.1528077520
## 33     theta    theta[1] -0.022700510 -0.043614793 -0.0005158225
## 34     theta    theta[2]  0.596110903  0.263395566  1.5542154641

3 Behavior and environment

3.1 Hierarchical

3.1.1 Ocean Depth

3.1.2 Distance to Coast

3.1.3 Interaction

3.2 By Month

3.2.1 Depth

Just the probability of feeding when traveling.

3.2.2 Coast

Zooming in on the top right plot.

Just mean estimate.

4 Behavioral Prediction

4.0.1 Correlation in posterior switching and state

4.1 Spatial Prediction

4.1.1 Per Animal

## $`1`

## 
## $`2`

## 
## $`3`

## 
## $`4`

## 
## $`5`

## 
## $`6`

## 
## $`7`

## 
## $`8`

## 
## $`9`

## 
## $`10`

## 
## $`11`

## 
## $`12`

## 
## $`13`

## 
## $`14`

## 
## $`15`

## 
## $`16`

## 
## $`17`

## 
## $`18`

## 
## $`19`

## 
## $`20`

## 
## $`21`

## 
## $`22`

## 
## $`23`

## 
## $`24`

## 
## $`25`

## 
## $`26`

## 
## $`27`

## 
## $`28`

## 
## $`29`

## 
## $`30`

## 
## $`31`

## 
## $`32`

## 
## $`33`

## 
## $`34`

## 
## $`35`

## 
## $`36`

## 
## $`37`

## 
## $`38`

## 
## $`39`

4.2 Log Odds of Foraging

4.2.1 Ocean Depth

4.2.2 Distance From Coast

4.3 Autocorrelation in behavior

4.4 Behavioral description

4.5 Predicted behavior duration

4.6 Location of Behavior

5 Environmental Prediction - Probability of Foraging across time

5.1 Bathymetry

5.2 Distance to coast

5.3 All variables

6 Overlap with Krill Fishery

6.1 By Month

6.2 Change in foraging areas

Jan verus May

Red = Better Foraging in Jan Blue = Better Foraging in May

6.2.1 Variance in monthly suitability

6.2.2 Mean suitability

6.3 Monthly Overlap with Krill Fishery

##             used   (Mb) gc trigger    (Mb)   max used    (Mb)
## Ncells   1995786  106.6   20802690  1111.0   40630256  2169.9
## Vcells 551274068 4205.9 1537507796 11730.3 1918645931 14638.2